package ch2;

/**
 * Created by 竹韵澜 on 2017/7/16.
 */

//********************************************************************
//  Addition.java       Java Foundations
//
//  Demonstrates the difference between the addition and string
//  concatenation operators.
//********************************************************************
public class Addition {
    //-----------------------------------------------------------------
    //  Concatenates and adds two numbers and prints the results.
    //-----------------------------------------------------------------
    public static void main (String[] args) {

        System.out.println ("24 and 45 concatenated: " + 24 + 45);
        System.out.println ("24 and 45 added: " + (24 + 45));

    }
}
